﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ignitron.EEngine;
using Ignitron.EEngine.Maths;

namespace Board3D.Models
{
    /// <summary>
    /// Visual style of checkers-board enumeration
    /// </summary>
    public enum enumBoardStyle { Classic, Marble, BlackAndWhite };

    /// <summary>
    /// Intersection result
    /// </summary>
    public class Intersection
    {
        public Intersection(float _u, float _v, float _t)
        {
            U = _u;
            V = _v;
            T = _t;
        }

        public float U
        { get; set; }

        public float V
        { get; set; }

        public float T
        { get; set; }
    }


    /// <summary>
    /// Result returned when intersection found
    /// </summary>
    public class IntersectionResult
    {
        public List<EVector3> FaceVertices
        { get; set; }

        public List<EVector2> TextureCoords
        { get; set; }


        public Intersection Intersection
        { get; set; }

        public IntersectionResult()
        {
            FaceVertices = new List<EVector3>();
            TextureCoords = new List<EVector2>();
        }
    }
}
